package com.gite.nouette.admin.implementation.integrator.director.command;

import com.gite.nouette.admin.contract.integrator.builder.command.IBuilderCommandCreateModule;
import com.gite.nouette.admin.contract.integrator.director.command.IDirectorCommandCreateModule;
import com.gite.nouette.admin.contract.model.command.ICommandCreateModule;


public class DirectorCommandCreateModuleImpl implements
		IDirectorCommandCreateModule {
	private IBuilderCommandCreateModule builder;

	@Override
	public IBuilderCommandCreateModule getBuilder() {
		return this.builder;
	}

	@Override
	public void setBuilder(IBuilderCommandCreateModule builder) {
		this.builder = builder;
	}

	@Override
	public ICommandCreateModule getProduct() {
		return getBuilder().getProduct();
	}

	@Override
	public void constructProduct() {
		getBuilder().createNewProduct();
		getBuilder().buildId();
		getBuilder().buildName();
		getBuilder().buildActivation();
		getBuilder().buildObservable();
		getBuilder().buildAssembler();
	}
}
